/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.distribution.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.distribution.comment.model.DistributionLevel;
import com.yami.shop.distribution.comment.model.DistributionLevelSet;
import com.yami.shop.distribution.comment.model.DistributionUser;
import com.yami.shop.distribution.comment.vo.DistributionAwardDataVO;

import java.util.List;

/**
 * @author lgh on 2019/04/04.
 */
public interface DistributionLevelService extends IService<DistributionLevel> {

    /**
     * 尝试进行升级
     *
     * @param distributionUser     分销员信息
     * @param distributionLevelSet 升级设置
     */
    void tryingToUpgrade(DistributionUser distributionUser, DistributionLevelSet distributionLevelSet);

    /**
     * 获取当前等级的等级信息
     * @param level 等级
     * @param distributionLevels 所有等级的等级信息
     * @return 当前等级的等级信息
     */
    DistributionLevel getLevelInfo(int level, List<DistributionLevel> distributionLevels);

}
